package com.home.homepage;

import com.home.homepage.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author ：YQ袁（2446806940@qq.com）
 * @date ：Created in 2022/12/6 20:54
 * @description：
 * @modified By：
 * @version:
 */
@SpringBootApplication(scanBasePackages ={"com.home.homepage","com.eig.security","com.eig.common.config"} )
@MapperScan(basePackages = "com.home.homepage.dao")
@EnableFeignClients
public class  HonePageApp {
    //这是一个main方法  程序的入口
    public static void main(String[] args) {
        SpringApplication.run(HonePageApp.class,args);
    }
    @Bean
    public IdWorker idWorker() {
        return new IdWorker(0,0);
    }
}
